package com.lnu.information;

/**
 * @author : jian.zhang-2
 * @description:
 * @date : Create in 3:09 PM 2022/4/7
 * @modified By :
 */
public class Parent {
    public Parent() {
        super();
        System.out.println("调用父类Parent()方法");
    }
    static class SubParent extends Parent{
        public SubParent() {
            super();
            System.out.println("调用子类SubParent()方法");
        }
    }

    static class Subroutine extends SubParent{
        public Subroutine() {
            super();
            System.out.println("调用子类Subroutine()方法");
        }
    }

    public static void main(String[] args) {
        new Subroutine();
    }
}
